$NOMOD51
$SAVE
$NOLIST
;BYTE Register
P0 DATA 80H
SP DATA 81H
DPL DATA 82H
DPH DATA 83H
PCON DATA 87H
TCON DATA 88H
TMOD DATA 89H
TL0 DATA 8AH
TL1 DATA 8BH
TH0 DATA 8CH
TH1 DATA 8DH
AUXR DATA 8EH
INT_CLKO DATA 8FH
P1 DATA 90H
P1M1 DATA 91H
P1M0 DATA 92H
P0M1 DATA 93H
P0M0 DATA 94H
P2M1 DATA 95H
P2M0 DATA 96H
CLK_DIV DATA 97H
SCOM DATA 98H
SBUF DATA 99H
S2CON DATA 9AH
S2BUF DATA 9BH
P1ASF DATA 9DH
P2 DATA 0A0H
BUS_SPEED DATA 0A1H
AUXR1 DATA 0A2H
IE DATA 0A8H
SADDR DATA 0A9H
WKTCL DATA 0AAH
WKTCH DATA 0ABH
IE2 DATA 0AFH
P3 DATA 0B0H
P3M1 DATA 0B1H
P3M0 DATA 0B2H
P4M1 DATA 0B3H
P4M0 DATA 0B4H
IP2 DATA 0B5H
IP DATA 0B8H
SADEN DATA 0B9H
P_SW2 DATA 0BAH
ADC_CONTR DATA 0BCH
ADC_RES DATA 0BDH
ADC_RESL DATA 0BEH
P4 DATA 0C0H
WDT_CONTR DATA 0C1H
IAP_DATA DATA 0C2H
IAP_ADDRH DATA 0C3H
IAP_ADDRL DATA 0C4H
IAP_CMD DATA 0C5H
IAP_TRIG DATA 0C6H
IAP_CONTR DATA 0C7H
P5 DATA 0C8H
P5M1 DATA 0C9H
P5M0 DATA 0CAH
SPSTAT DATA 0CDH    ;SPI STATE Register
SPCTL DATA 0CEH    ;SPI CONTROL Register
SPDAT DATA 0CFH    ;SPI DATA Register
PSW DATA 0D0H
T2H DATA 0D6H
T2L DATA 0D7H
CCON DATA 0D8H
CMOD DATA 0D9H
CCAPM0 DATA 0DAH
CCAPM1 DATA 0DBH 
ACC DATA 0E0H
CL DATA 0E9H
CCAP0L DATA 0EAH
CCAP1L DATA 0EBH 
CCAP2L DATA 0ECH 
B DATA 0FCH 
PCA_PWM0 DATA 0F2H
PCA_PWM1 DATA 0F3H
PCA_PWM2 DATA 0F4H
CH DATA 0F9H
CCAP0H DATA 0FAH 
CCAP1H DATA 0FBH
CCAP2H DATA 0FCH 

;Bit-addressing registers
;TCON(88H)
TF1 BIT 8FH
TR1 BIT 8EH
TF0 BIT 8DH
TR0 BIT 8CH
IE1 BIT 8BH
IT1 BIT 8AH
IE0 BIT 89H
IT0 BIT 88H

;SCON(98H)
SM0 BIT 9FH
SM1 BIT 9EH
SM2 BIT 9DH
REN BIT 9CH
TB8 BIT 9BH
RB8 BIT 9AH
TI BIT 99H
RI BIT 98H

;IE(0A8H)
EA BIT 0AFH 
ELVD BIT 0AEH 
EADC BIT 0ADH 
ES BIT 0ACH 
ET1 BIT 0ABH 
EX1 BIT 0AAH
EX0 BIT 0A8H

;P3(0B0H)
T1 BIT 0B5H
T0 BIT 0B4H
INT1 BIT 0B3H
INT0 BIT 0B2H
TXD BIT 0B1H
RXD BIT 0B0H

;IP(0B8H)
PPCA BIT 0BFH 
PLVD BIT 0BEH 
PADC BIT 0BDH 
PS BIT 0BCH
PT1 BIT 0BBH
PX1 BIT 0BAH 
PT0 BIT 0B9H 
PX0 BIT 0B8H

;PSW(0D0H)
CY BIT 0D7H 
AC BIT 0D6H
F0 BIT 0D5H
RS1 BIT 0D4H
RS0 BIT 0D3H
OV BIT 0D2H
F1 BIT 0D1H
P BIT 0D0H

;CCON(0D5H)
CF BIT 0DFH
CR BIT 0DEH
CCF2 BIT 0DAH
CCF1 BIT 0D9H
CCF0 BIT 0D8H

;Zone 0 registers R0~R7 definitions
Res0 Data 00H 
Res1 Data 01H 
Res2 Data 02H 
Res3 Data 03H 
Res4 Data 04H 
Res5 Data 05H 
Res6 Data 06H 
Res7 Data 07H 
ResB Data 0F0H
$RESTORE
